package com.haiyou.dc.plugin;

import com.haiyou.common.plugin.util.PluginManager;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

/**
 * http://localhost:8800/dc-api/swagger-ui.html
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class}, scanBasePackages = {"com.haiyou.dc.plugin", "com.haiyou.common"})
public class PluginApplication {
    public static void main(String[] args) {
        SpringApplication.run(PluginApplication.class, args);
        String pluginPath = "G:\\IdeaProjects\\my-java-project\\dc-plugin\\src\\main\\resources\\plugin.xml";
        PluginManager.initPlugin(pluginPath);
    }
}
